package com.io.config;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Component
public class AuthorizationConfig {
    private final List<String> excludeUrls = new ArrayList<>();

    @PostConstruct
    public void init() {
        excludeUrls.add("/user/login");
        excludeUrls.add("/init");
        excludeUrls.add("/base-product/web");
        excludeUrls.add("/base-product/product/api1/demo1");
        excludeUrls.add("/base-order/feign/info");
        excludeUrls.add("/hello");
        excludeUrls.add("/world");
    }

    public List<String> getExcludeUrls() {
        return excludeUrls;
    }
}
